package top.vanchor.myblog2back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.vanchor.myblog2back.entity.BackAuthGroupRule;
import top.vanchor.myblog2back.entity.BackAuthRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
@Mapper
public interface BackAuthRuleMapper extends BaseMapper<BackAuthRule> {

    List<BackAuthRule> getAllRules(@Param("groupRules") String groupRules,@Param("list") List<Integer> idsList);

    List<Integer> getDelIdIgnoreThisId(@Param("id") Integer id);

    int menuItemDel(@Param("list") List<Integer> allIDs);

    List<Integer> getAllTopRules(@Param("id") Integer ruleId);
}
